import request from '@/utils/request'

export function saveLine(data) {
  return request({
    url: 'save_line',
    method: 'post',
    data
  })
}
export function company_list(data) {
  return request({
    url: 'company_list',
    method: 'post',
    data
  })
}

export function savePoints(data) {
  return request({
    url: 'save_points',
    method: 'post',
    data
  })
}
export function add_regular(data) {
  return request({
    url: 'add_regular',
    method: 'post',
    data
  })
}

export function save_start_end(data) {
  return request({
    url: 'save_start_end',
    method: 'post',
    data
  })
}
export function save_yun(data) {
  return request({
    url: 'save_yun',
    method: 'post',
    data
  })
}
export function get_line_info(data) {
  return request({
    url: 'get_line_info',
    method: 'get',
    params: data
  })
}

export function get_regular_info(data) {
  return request({
    url: 'get_regular_info',
    method: 'get',
    params: data
  })
}

export function delete_regular(data) {
  return request({
    url: 'delete_regular',
    method: 'get',
    params: data
  })
}
export function delete_pan(data) {
  return request({
    url: 'delete_pan',
    method: 'get',
    params: data
  })
}
export function aysnc_List(data) {
  return request({
    url: 'aysnc_List',
    method: 'post',
    data
  })
}

export function delete_line(data) {
  return request({
    url: 'delete_line',
    method: 'get',
    params: data
  })
}

export function aysnc_line_list(data) {
  return request({
    url: 'aysnc_line_list',
    method: 'post',
    data
  })
}
export function add_pan_regular(data) {
  return request({
    url: 'add_pan_regular',
    method: 'post',
    data
  })
}

export function aysnc_regular_list(data) {
  return request({
    url: 'aysnc_regular_list',
    method: 'post',
    data
  })
}

export function main_order_list(data) {
  return request({
    url: 'main_order_list',
    method: 'post',
    data
  })
}

export function user_ticket_list(data) {
  return request({
    url: 'user_ticket_list',
    method: 'post',
    data
  })
}
export function dz_list(data) {
  return request({
    url: 'dz_list',
    method: 'post',
    data
  })
}
export function draw_line(data) {
  return request({
    url: 'draw_line',
    method: 'post',
    data
  })
}

export function city_list(data) {
  return request({
    url: 'city_list',
    method: 'post',
    data
  })
}

export function add_city(data) {
  return request({
    url: 'add_city',
    method: 'post',
    data
  })
}

export function aysnc_city_list(data) {
  return request({
    url: 'aysnc_city_list',
    method: 'post',
    data
  })
}

export function kt_city_list(data) {
  return request({
    url: 'kt_city_list',
    method: 'post',
    data
  })
}
export function add_company(data) {
  return request({
    url: 'add_company',
    method: 'post',
    data
  })
}

export function aysnc_company_list(data) {
  return request({
    url: 'aysnc_company_list',
    method: 'post',
    data
  })
}

export function bus_main_oder_refund(data) {
  return request({
    url: 'bus_main_oder_refund',
    method: 'post',
    data
  })
}
export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
